package com.aynu.bookstore.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.aynu.bookstore.beans.OrItem;
import com.aynu.bookstore.beans.Orders;
import com.aynu.bookstore.beans.Products;

public interface IProductsDao {

	Integer selectProductsCountByProductMapper(@Param("product") String product);

	List<Products> selectAllProducts(Map map);

	Integer selectProductsCountByNameMapper(@Param("textfield") String textfield);

	List<Products> selectAllProductsByName(Map map);

	Products selectProductsById(@Param("id") Integer id);

	void insertOrder(Orders orders);

	void insertItems(OrItem items);

	void updateOrder(@Param("out_trade_no") String out_trade_no);

}
